package com.nengchuan.kbms.dfs.entity.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "BizDTO 对象", description = "文件（夹）对象")
@ToString
public class BizDTO {

    @NotNull(message = "文件(夹)id不能为空")
    @ApiModelProperty(value = "文件（夹）id", position = 10)
    private Long bizId;

    @NotEmpty(message = "文件对应类型不能为空")
    @Size(max = 10,message = "类型不能大于10个字符")
    @ApiModelProperty(value = "类型（d：文件；f文件夹）", position = 20)
    private String bizType;

}
